import { createStore } from 'vuex'

export default createStore({
    state() {
        return {
            loading: true
        }
    },
    mutations: {
        showLoading(state) {
            state.loading = true
        },
        hideLoading(state) {
            state.loading = false
        }
    }
})